package ru.sviridov.sellandbuy.url;

import ru.sviridov.sellandbuy.tools.Constants;
import android.net.Uri;

public class URL { 
	private static final String HOST="https://api.istsoft.ru/"+Constants.API_VERSION+"/";

	public static String getURL(APIGroup group, String apiMethod){
		Uri.Builder builder = Uri.parse(HOST).buildUpon();
		builder.appendPath(group.toString());
		builder.appendPath(apiMethod);
		
		return builder.build().toString();
	}


}
